package com.jnshu.dao;

import com.jnshu.dto.person.CollectionDto;
import com.jnshu.pojo.Collect;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author xmp
 * @date 2019/8/18 7:44
 */
@Mapper
public interface UserCollectionMapper {
    //分页查询用户收藏的资料
    List<CollectionDto> getCollection(long id,int classify);

    Collect selectStatus(@Param("courseId")long courseId, @Param("userId") long userId);

    Boolean deleteStatus(@Param("userId")long userId,@Param("courseId") long courseId);

    Boolean deleteByUserId(@Param("userId")long userId);

    Boolean deleteMoreId(@Param("courseId") String[] courseId, @Param("userId") long userId);
}
